// -----------------------------------------------------------------------
//  <copyright file="OrganizationByNameAndParentSpec.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2024 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2024/12/10 16:29:01</last-date>
// -----------------------------------------------------------------------

using DaprPlus.Identity.Domain.Entities;


namespace DaprPlus.Identity.Application.Identity.Organizations.Specs;

public class OrganizationByNameAndParentSpec(string name, long? parentId)
    : SpecificationBase<Organization>(m => m.Name == name && (parentId == null || m.ParentId == parentId))
{ }
